package com.springmybatis.Service.impl;

import com.springmybatis.Mapper.AccountMapper;
import com.springmybatis.Service.AccountService;
import com.springmybatis.pojo.Account;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author cc
 * @date 2021/8/16 16:42
 * @Description
 */

@Service
public class AccountServiceImpl implements AccountService {

    @Resource
    AccountMapper accountMapper;
    public int addAccount(Account account) {
        int i = accountMapper.addAccount(account);
        return i;
    }

    public int updateAccount(String name, Double money) {
        return accountMapper.updateAccount(name,money);
    }
}
